Skip to content

refactor(actions): adopt Core CompositeToolCallBase, dynamic buildable catalog, and rotated blueprint fidelity - #23

Merged
mcocdaa merged 1 commit into
mainfrom
refactor/generic-separation-live-fixes
Nov 21, 2026
Merged

mcocdaa merged 1 commit into
mainfrom
refactor/generic-separation-live-fixes

Conversation

@mcocdaa

@mcocdaa mcocdaa commented Nov 21, 2026

Copy link
Copy Markdown
Collaborator

Migrates all 11 composite tools onto Core CompositeToolCallBase with explicit ToolScopes and main-thread guard; replaces hardcoded buildable list with dynamic DefDatabase query (BuildableStructureCatalogPolicy); fixes rotated blueprint dimensions and interaction cell offsets (ConstructionIntentChainer); removes workSettings side-effects in resource designation; splits ColonySpatialClusterSolver. Verified with 109/109 tests and 50/50 live tool behavior suite.

…e catalog, and rotated blueprint fidelity

refactor(actions): extract shared construction chainer and dynamic buildable catalog

Split oversized composite tool base and spatial solver into focused modules,
and replace hardcoded structure lists with dynamic DefDatabase discovery.

- Move generic composite plumbing (ExecuteAtomicAsync, argument parsing,
  Classify, Manifest, ToolScopes) into Core CompositeToolCallBase; Actions
  base now only layers ownership and localized permission guards.
- Extract ConstructionIntentChainer shared by PlaceBlueprint and
  PlanRoomProject, removing duplicated intent-session and work-giver logic.
- Split ColonySpatialClusterSolver into SpatialGridModels,
  SpatialBuildingClassifier, and SpatialAsciiRenderer; add footprint
  min-offset support so center-anchored multi-cell buildings are placed
  using their real occupied rect and interaction cell.
- Add BuildableStructureCatalogPolicy and discover buildable structures
  from DefDatabase<ThingDef> (vanilla + modded) with category
  classification, cost formatting, affordability, and bounded ranking.
- Delegate actor/map resolution to Core ActorMapResolver and resource
  counting to MapResourceCounter; parse arguments once per call.
- Stop mutating player work priorities (no workSettings.SetPriority) in
  DesignateResources, ManageZone, and TriagePatient.
- Add ToolScopes to all composite tools and enforce it in tests.
@mcocdaa
mcocdaa merged commit 02cea64 into main Nov 21, 2026
@mcocdaa
mcocdaa deleted the refactor/generic-separation-live-fixes branch November 21, 2026 10:40
@coderabbitai

coderabbitai Bot commented Nov 21, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant